import { Checkbox } from 'antd-mobile';
export default function CardExtra(props: { selectItem: any; data: any; changeBox: any; }) {
  const { selectItem, data, changeBox } = props;
  const { taskId } = data;

  return (
    <Checkbox
      checked={selectItem?.includes(taskId)}
      onChange={(checked) => {
        changeBox(checked, data);
      }}
    />
  );
}
